package com.Babysleep.Activity;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.Babysleep.R;
import com.Babysleep.manage.YaoLanQuPlay;

public class YaoLanQu extends PlayActivity {

	private listener mylistener = new listener();
	private YaoLanQuPlay player;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.yaolanqu);
		//init();
	}

	public void init() {
		
		((TextView) findViewById(R.id.introduce)).setText(R.string.yaolanqu);
		findViewById(R.id.back_to_list).setOnClickListener(mylistener);
		findViewById(R.id.next_page).setOnClickListener(mylistener);
		findViewById(R.id.start).setOnClickListener(mylistener);
		findViewById(R.id.full_page).setVisibility(View.GONE);
		player=new YaoLanQuPlay(this);
		
	}

	class MyHandler extends Handler {

		@Override
		public void handleMessage(Message msg) {
			// TODO Auto-generated method stub
			super.handleMessage(msg);
			switch (msg.what) {
			case 1:

				break;

			default:
				break;
			}
		}

	}

	class listener implements OnClickListener {
		@Override
		public void onClick(View v) {
			visiblity_counter = 300;
			switch (v.getId()) {
			case R.id.back_to_list:
				back_to_list();
				break;
			case R.id.start:
				back_to_list();
				break;
			case R.id.next_page:
				back_to_list();
				break;

			default:
				break;
			}
		}

	}

}
